<?php
/***************************************************************************
 *   Copyright (C) 2007 by Andrea Blankenstijn, David Dieulivol            *
 *   darkan9el@gmail.com, daviddieulivol5@hotmail.com                      *
 *                                                                         *
 *   All rights reserved.                                                  *
 *   This work is released under the terms of the New BSD License.         *
 *   See LICENSE.BSD file for licensing details                            *
 ***************************************************************************/
/* * *
* $Id: photo.php 49 2007-08-27 18:23:57Z DarkAn9el $
* * */

@$id = $_GET['viewPhoto'];

if(!empty($id))
{
	$photo = new Photo($odb, $id);

	$date  = strftime('%A, %d %B %Y', strtotime($photo->getDate()));
	$desc  = $photo->getDescription();
	$file  = $photo->getImageWebPath();
	$name  = $photo->getName();

	echo '<p id="photoTitle">', $name,' (', $date, ')</p>';
	echo '<img src="', $file,'" alt="', $name,'"/>';
	echo '<p id="photoDesc"><em>', $desc,'</em></p>';
}
?>
<p style="clear:both"><em>$Id: photo.php 49 2007-08-27 18:23:57Z DarkAn9el $</em></p>